import Modal from './';
export default React.createClass({
    getDefaultProps(){
        return {
            open: false,
            onclose: ()=> {
                console.log('Modal close !');
                this.props.open = false;
            },
            modal_title: '模态窗标题'

        }
    },
    render(){
        const self = this;
        return <Modal className={this.props.className} open={self.props.open}>
            <Modal.Header onclose={()=> {
                self.props.onclose();
            }
            }>{self.props.title}</Modal.Header>
            <Modal.Body>
                {
                    this.props.children || '模态窗主内容!'
                }
            </Modal.Body>
        </Modal>

    }
})